﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace _57枚举
{
    internal class Program
    {
        private static void Main(string[] args)
        {
            //Fun(Sex.boy);

            DoWhatToDay(new DateTime(2030, 2, 1).DayOfWeek);
        }

        //根据星期几判断今天该干嘛,上课,自习,休息

        private static void DoWhatToDay(DayOfWeek week)
        {
            switch (week)
            {
                case DayOfWeek.Sunday:
                    Console.WriteLine("休息");
                    break;
                case DayOfWeek.Monday:
                case DayOfWeek.Tuesday:
                case DayOfWeek.Wednesday:
                case DayOfWeek.Thursday:
                case DayOfWeek.Friday:
                    Console.WriteLine("学习");
                    break;
                case DayOfWeek.Saturday:
                    Console.WriteLine("自习");
                    break;
            }
        }

        private static void Fun(Sex sex)
        {
            switch (sex)
            {
                case Sex.boy:
                    break;
                case Sex.girl:
                    break;
                default:
                    break;
            }
        }
    }

    internal enum Sex
    {
        boy,
        girl
    }
}